package com.mentor.mate.academy.gamebook;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.view.WindowManager;
import android.widget.Button;

public class GameBook extends Activity implements OnClickListener {
	private Button startGame, exitGame;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
				WindowManager.LayoutParams.FLAG_FULLSCREEN);
		setContentView(R.layout.activity_game_book);

		initLayout();

	}

	private void initLayout() {
		startGame = (Button) findViewById(R.id.startGame);
		exitGame = (Button) findViewById(R.id.exitGame);

		startGame.setOnClickListener(this);
		exitGame.setOnClickListener(this);

	}

	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.startGame:
			Intent intent = new Intent(getApplicationContext(),
					FirstGameScreen.class);
			startActivity(intent);
			break;
		case R.id.exitGame:
			finish();
		default:
			break;
		}

	}

}
